package oo_day05;
      //枚举
public enum Season {
    //表示Season的固定的4个对象
    //public static final Season SPRING = new Season("春天","暖和")
    SPRING("春天", "暖和"),
    SUMMER("夏天","闷热"),
    AUTUMN("秋天","凉爽"),
    WINTER("冬天","寒冷");

    private String seasonName;
    private String seasonDesc;

    //构造方法
    Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }
    //重写方法
    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

}



